{{< test-drive url=“https://rstudio.cloud/project/181856” >}}

A first look

This is an R Markdown file.

Every R Markdown file has the extension .Rmd. This particular file analyzes data about children’s word learning, but beyond the content: every .Rmd includes the same three basic elements inside. Those elements are:

  • A block of metadata at the top, fenced in between ---s
  • Code chunks
  • Narrative text

You can use these elements to develop your code and ideas in one reproducible document. To be reproducible though, you have to first produce something!

A first knit

The file extension .Rmd makes your file executable, which means that this file can be used to both save and evaluate code.

Any output your code produces like tables, plots, or other results can be included when you render your document. In this example, we show R code, but you can execute code in other languages too.

In RStudio, this is called knitting, and there is a special button for it.

INSERT MOVIE HERE OF KNITTING